-- GENERATED SPELL FOR [Foreman Jerris] --


function spell0_1843(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1843', 2333, 1)
end

function spell1_1843(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_1843', 602, 1)
end

function Sorts_1843(pUnit, Event)
local choix_sorts_1843 = math.random(0, 1)
if choix_sorts_1843 == 0 then
pUnit:RegisterEvent('spell0_1843', 1, 1)
end
if choix_sorts_1843 == 1 then
pUnit:RegisterEvent('spell1_1843', 1, 1)
end
end

function mob1843_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1843', math.random(1500, 3000), 1)
end

function mob1843_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1843_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1843_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1843, 1, 'mob1843_Action')
RegisterUnitEvent(1843, 2, 'mob1843_Leave')
RegisterUnitEvent(1843, 3, 'mob1843_Kill')
RegisterUnitEvent(1843, 4, 'mob1843_Die')
